Skip to content

fixed ultof and added tests #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 5, 2025
Merged

fixed ultof and added tests #564

merged 2 commits into from
Apr 5, 2025

Conversation

ZERICO2005
Copy link
Contributor

Fixes this issue #466

ultof now correctly handle values greater than INT32_MAX. However, ti's ltof will round to nearest with ties away from zero, while ultof will round to nearest with ties to even.

I am not sure if would be best for ultof to have the same rounding as ltof

Thanks to calc84maniac for help on ultof.src

@adriweb adriweb linked an issue Mar 25, 2025 that may be closed by this pull request
@mateoconlechuga
Copy link
Member

ultof should have same rounding as ltof

@ZERICO2005
Copy link
Contributor Author

I have fixed it so it uses round to nearest with ties away from zero

@mateoconlechuga mateoconlechuga merged commit a11f44b into master Apr 5, 2025
9 checks passed
@mateoconlechuga mateoconlechuga deleted the pr/fix_ultof branch April 5, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

__ultof actually implements __ltof
4 participants